
var myObject={
    value:0,
}

myObject.double =function(){
    var that=this
    console.log(this ,'------');
    var helper =function(){
        //实际上隐式的创建了全局变量 this->全局
         this.value=2+2;
         //that->myObject
         that.value=1+1;
    }
    helper();
    console.log(this ,'+++++');
}
myObject.double();
// console.log(value);
